class Site::HomeController < ApplicationController
  def index
    @title = "分度网首页"
    @requirements = Requirement.find(:all, :order=> "updated_at", :limit => 15)
    @works = Work.find(:all, :limit => 8, :order => "created_at")
    @infos = Info.find(:all, :limit => 10, :order => "created_at")
    @designers = User.find(:all, :limit => 6, :conditions => "role='#{DESIGNER}' and is_vip='#{YES}'")
    @demanders = User.find(:all, :limit => 4, :conditions => "role='#{DEMANDER}' and is_vip='#{YES}'")
  end

end
